//
//  NewMerchantModel.m
//  UI_HLJ_Frame
//
//  Created by dllo on 15/7/1.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "NewMerchantModel.h"
#import "AppDelegate.h"
@implementation NewMerchantModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"logo_path"]) {
//        NSString *str = [NSString stringWithFormat:@"%@?imageView2/1/w/%.0f/h/%.0f/format/PNG", value, [UIScreen mainScreen].bounds.size.width/3, 100 * [UIScreen mainScreen].bounds.size.height/375];
//        self.logopath = str;
        self.logopath = value;
    }
    
    
}

- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.id forKey:@"id"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    self = [super init];
    if (self) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.id = [aDecoder decodeObjectForKey:@"id"];
    }
    return self;
}



@end
